// declaration of class members using styles:
//     "Class.prototype.member = value"
//     "Class.prototype = { member1: ..., member2: ...., ... }


function normal_fun1(arg1, arg2) {
   return arg1 + arg2;
}

function Class_1() {
}

Class_1.prototype.sayHello = function() { 
   say("hello world")
}

Class_1.prototype.id = 12345;

Class_1.prototype.obj.prop = function() {}


app.widget.Class_2 = function(myId) {
    this.id = myId

    this.method1 = function() {
       doNothing();
       this.inner = true;
    }
}

app.widget.Class_2.prototype = {
    name : "class 2",

    refresh: Ext.emptyFn,

    method2 : function(p1, p2) {
        this.method2_closure = function() {
           return p1 * p2;
        }
    },

    sayHi : function() {
       console.log('hi');
       return true;
    },

    getId : function() {
       return this.id;
    },

    toString : function() {
       this.me = "class 2 instance"
    }
};


app.widget.Panel = function() {
}

app.widget.Panel.prototype.refresh = function() {
   redraw();
}


